const { createProxyMiddleware } = require("http-proxy-middleware");
module.exports = function(app) {
    app.use(
        createProxyMiddleware("/users", {
            target: "https://conduit.productionready.io",
            changeOrigin: true,
            secure: false
        })
        
    );
    app.use(
        createProxyMiddleware('/boss', {
            target: 'http://eduboss.lagou.com',
            changeOrigin: true // 把请求头中的 host 配置为 target
          })
        
    );
    app.use(
        createProxyMiddleware('/front',{
            target: 'http://edufront.lagou.com',
            changeOrigin: true
          })
    );
    
};